package com.baox.agridata.synchronous.service.impl;

import com.baox.agridata.synchronous.dao.TXDRHatcheryMapper;
import com.baox.agridata.synchronous.entity.TXDRHatcheryEntity;
import com.baox.agridata.synchronous.service.TXDRHatcheryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TXDRHatcheryServiceImpl implements TXDRHatcheryService {

    @Autowired
    private TXDRHatcheryMapper txdrHatcheryMapper;

    @Override
    public TXDRHatcheryEntity selectTXDRHatcheryById(String mid) {
        return txdrHatcheryMapper.selectTXDRHatcheryById(mid);
    }

    @Override
    public Integer insertIntoTXDRHatchery(TXDRHatcheryEntity txdrHatcheryEntity) {
        return txdrHatcheryMapper.insertIntoTXDRHatchery(txdrHatcheryEntity);
    }

    @Override
    public List<TXDRHatcheryEntity> selectTXDRHatcheryDataToChengDu(String startTime) {
        return txdrHatcheryMapper.selectTXDRHatcheryDataToChengDu(startTime);
    }
}
